/**
 * kl yy-ds @2021
 */
package com.cxps.server.order.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cxps.server.order.domain.OrderDetailsEntity;
import com.cxps.server.order.domain.OrderEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 订单持久层
 *
 * @author YouCai.Liu
 * @since 2021/11/6
 * ...
 */
@Mapper
public interface OrderMapper extends BaseMapper<OrderEntity> {
    List<OrderDetailsEntity> selectOrderDetailsByOrderId(String id);

    void saveOrderDetails(List<OrderDetailsEntity> orderDetailsEntityList);

    void updateOrderStatus(@Param("orderNum") String orderNum,
                           @Param("payType") String payType, @Param("code") String code);
}
